Skip to content

add k_sleep tracing in CTF, add ram tracing snippet #93327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 25, 2025

Conversation

nashif
Copy link
Member

@nashif nashif commented Jul 18, 2025

  • tracing: ctf: trace k_sleep()
  • tracing: introduce ram tracing snippet

.. _snippet-ram-tracing:

RAM Tracing Snippet (ram-tracing)
############################################
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mismatched header length

nordicjm
nordicjm previously approved these changes Jul 18, 2025
Trace sleep events in CTF:

[19:00:00.181375400] (+0.000044700) k_sleep_enter: ...
..
[19:00:00.290203800] (+0.000031500) k_sleep_exit: ...

Signed-off-by: Anas Nashif <[email protected]>
@nashif nashif force-pushed the topic/tracing/improvements_1 branch from c84017e to 424548e Compare July 18, 2025 13:55
teburd
teburd previously approved these changes Jul 18, 2025
Copy link
Contributor

@kartben kartben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just spotted a small typo in babeltrace - thanks!

This allows tracing any application and stores the data in RAM. Using
gdb, the ram_tracing variable contents can then be saved and viewed
using babeltrace.

Signed-off-by: Anas Nashif <[email protected]>
@kartben kartben force-pushed the topic/tracing/improvements_1 branch from 424548e to c727a38 Compare July 22, 2025 08:46
@kartben kartben requested review from teburd and nordicjm July 22, 2025 08:46
Copy link

@nashif nashif assigned nashif and unassigned tejlmand Jul 25, 2025
@kartben kartben merged commit d54d69b into zephyrproject-rtos:main Jul 25, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants